<?php
	include("Connection.php");
	
	$value = $_GET['q'];
	$query = "	SELECT 	CarModel 
				FROM 	car 
				WHERE 	CarLocation='$value';	";
	$result = mysql_query($query);
	
	if(!$result){
		die("Can't execute".mysql_error());
	}
	
	while($row = mysql_fetch_array($result)){
		echo "<option value='" . $row['CarModel'] . "'>" . $row['CarModel'] . "</option>";
	}
	
	mysql_close($link);
	exit;
?>
